from django import http
from django.shortcuts import render
from django.views import View

# Create your views here.
from wechat_market.settings import templates_pwd, static_pwd


class AdminViews(View):
    def get(self, request):
        return render(request, 'user/login.html', {'templates_pwd': templates_pwd, 'static_pwd': static_pwd})

    def post(self, request):
        print('**************************')
        return 'xzvc'


class IndexViews(View):
    def get(self, request):
        return render(request, 'index/index.html')


class EditViews(View):
    def get(self, request):
        return render(request, 'user/edit.html')


class ResetPwdViews(View):
    def get(self, request):
        return render(request, 'user/reset_pwd.html')


# class LogoutViews(View):
#     def get(self, request):
#         return render(request, '')


class AccountIndexViews(View):
    def get(self, request):
        return render(request, 'account/index.html')


class AccountInfoViews(View):
    def get(self, request):
        return render(request, 'account/info.html')



class AccountSetViews(View):
    def get(self, request):
        return render(request, 'account/set.html')


class FoodIndexViews(View):
    def get(self, request):
        return render(request, 'food/index.html')


class FoodSetViews(View):
    def get(self, request):
        return render(request, 'food/set.html')


class FoodCatViews(View):
    def get(self, request):
        return render(request, 'food/cat.html')


class FoodInfoViews(View):
    def get(self, request):
        return render(request, 'food/info.html')


class MemberIndexViews(View):
    def get(self, request):
        return render(request, 'member/index.html')


class MemberInfoViews(View):
    def get(self, request):
        return render(request, 'member/info.html')


class MemberCommentViews(View):
    def get(self, request):
        return render(request, 'member/comment.html')


class MemberSetViews(View):
    def get(self, request):
        return render(request, 'member/set.html')


class FinanceIndexViews(View):
    def get(self, request):
        return render(request, 'finance/index.html')


class FinanceAccountViews(View):
    def get(self, request):
        return render(request, 'finance/account.html')


class FinancePayInfoViews(View):
    def get(self, request):
        return render(request, 'finance/pay_info.html')


class StatIndexViews(View):
    def get(self, request):
        return render(request, 'stat/index.html')


class StatFoodViews(View):
    def get(self, request):
        return render(request, 'stat/food.html')


class StatMemberViews(View):
    def get(self, request):
        return render(request, 'stat/member.html')


class StatShareViews(View):
    def get(self, request):
        return render(request, 'stat/share.html')
